﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Demo08
    {
        /*用户输入正方形边长，用*打印出实心正方形。*/
        static void Main(string[] args)
        {
            Console.WriteLine("请输入正方形边长");
            string a = Console.ReadLine();
            int b = Convert.ToInt32(a);
            for (int i = 0; i < b; i++)
            {
                for (int j = 0; j < b; j++)
                {
                    Console.Write(" *");
                }
                Console.WriteLine();
            }
        }
    }
}
